package net.googlecode.kharchenko.controllers;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Controller of error pages
 */
@Controller
public class HTTPErrorController {

    @RequestMapping(value = "/errors/404")
    public String handle404() {
        return "error404";
    }

    @RequestMapping(value = "/errors/500")
    public String handle403() {

        return "error500";
    }

    @RequestMapping(value = "/errors/400")
    public String handle400() {

        return "error400";
    }

    @RequestMapping(value = "/errors/405")
    public String handle405() {

        return "error405";
    }

}
